/*
 * ============================================================================
 * Copyright Notice!
 * ----------------------------------------------------------------------------
 * This file contains proprietary and confidential information belonging to the
 * group of people involvled in developing this project.  Reproduction, disclosure 
 * or use without specific written authorization from project stake holders is 
 * prohibited. Please refer the readme.txt in project installation folder for more
 * specific contacts
 *
 * All rights reserved.
 * ============================================================================
 */
package edu.uwm.universitydb.model;

import java.util.Date;

/**
 * Model class representing <code>Project</type>
 * 
 * @author Shyam Nair
 */
public class Project
{
    /** attribute holding the project number */
    private final Integer mProjectNum;

    /** attribute holding the sponsor */
    private final String mSponsor;

    /** attribute holding the start date */
    private final Date mStartDate;

    /** attribute holding the end date */
    private final Date mEndDate;

    /** attribute holding the budget */
    private final Integer mBudget;
    
    private final Professor mProjectManager;

    /**
     * 
     * @param projectNum
     * @param sponsor
     * @param startDate
     * @param endDate
     * @param budget
     * @param projectManager
     */
    public Project(final Integer projectNum, final String sponsor, final Date startDate,
                   final Date endDate, final Integer budget, final Professor projectManager)
    {
        mProjectNum = projectNum;
        mSponsor = sponsor;
        mStartDate = startDate;
        mEndDate = endDate;
        mBudget = budget;
        mProjectManager = projectManager;
    }

    /**
     * @return Returns the mProjectNum.
     */
    public Integer getProjectNum()
    {
        return mProjectNum;
    }

    /**
     * @return Returns the mSponsor.
     */
    public String getSponsor()
    {
        return mSponsor;
    }

    /**
     * @return Returns the mStartDate.
     */
    public Date getStartDate()
    {
        return mStartDate;
    }

    /**
     * @return Returns the mEndDate.
     */
    public Date getEndDate()
    {
        return mEndDate;
    }

    /**
     * @return Returns the mBudget.
     */
    public Integer getBudget()
    {
        return mBudget;
    }

    /**
     * @return Returns the mProjectManager.
     */
    public Professor getProjectManager()
    {
        return mProjectManager;
    }
    
    public String getDepartmentName()
    {
        return mProjectManager.getDepartment().getDeptName();
    }
}
/*
 * ============================================================================
 * Change History
 * ----------------------------------------------------------------------------
 * Apr 19, 2014   Shyam Nair
 * File created
 * ----------------------------------------------------------------------------
 * Apr 27, 2014   Shyam Nair
 * Included Projec Manager
 * ----------------------------------------------------------------------------
 */